@charset "utf-8";
/* CSS Document */

/* Grundlayout für SELFHTML-Beispiele */

html {
  background: #a8a8a8;
  color: #f3ebe0;
  font-family: AvenirWeb, "Avenir Next", Avenir, "Helvetica Neue", Arial, Helvetica, sans-serif;
}

body {
  margin: auto;
  max-width: 90em;
  font-family: sans-serif;
  color: #333333;
}

h1, main, article, aside, main svg {
  border: none;
  margin: 0.2em;
}

h1 {
  border-radius: 0.5em;
  margin: 0.2em;
  font-stretch: semi-expanded;
}

h2 {
  font-stretch: semi-expanded;
}

h3.kursiv {
  font-stretch: semi-expanded;
  font-style: italic;
}

image.raum {
  width: auto;
  margin: none;
  padding: none;
}

ul {
  list-style-type: none;
  margin: 0.2em;
  padding: 0 0.1em;
  font-weight: 400;
}

li {
  list-style-type: none;
}

/* Auf der Startseite wird das Bild aus- und als Hintergrundbild eingeblendet. */

#index {
  background: #a8a8a8 url("../img/bwalz_2021-08-1k-33.jpg") 0px 0px no-repeat;
  background-size: 100%;
}

footer {
  color: #333333;
}

#index img {
  display: none;
}

/* Flexbox. */

.flex-container {
  display: flex;
  flex-flow: wrap;
}

.wrap {
  flex-flow: wrap;
}

.flex-item {
  color: #333333;
  border: 1px transparent;
  /*border-radius: .5em;*/
  margin: 0.5em;   /*wirkt sich auf alle flex-items auch auf das gesamte Dokument aus*/
  padding: 0.3em;
  background: #bbbbbb;
}

.verteilt {
  justify-content: space-around;
}

p.flex-item {
  font-weight: bold;
  text-align: center;
}

.flex-item:nth-of-type(2),
.flex-item:nth-of-type(3),
.flex-item:nth-of-type(4),
.flex-item:nth-of-type(5) {
  background: #bbbbbb;
}

/* aktuelle Seite wird farbig geändert */
.flex-item a[aria-current="page"] {
  color: #333333;
  font-weight: bold;
  font-size: 1.2em;
}

/* flex-item-navigation heißt nicht flex-item sondern flex-navi */

.flex-navi {
  color: #f3ebe0;
  border: 1px transparent;
  margin: 0.5em;
  padding: 0.5em;
  background: #a8a8a8;
}

p.flex-navi {
  color: #f3ebe0;
  font-weight: bold;
  text-align: center;
}

.flex-navi:nth-of-type(2),
.flex-navi:nth-of-type(3),
.flex-navi:nth-of-type(4),
.flex-navi:nth-of-type(5) {
  background: #a8a8a8;
}

/* flex-navi-a */

.flex-navi a {
  width: auto;
  margin: 0;
  text-decoration: none;
  text-align: center;
  color: #f3ebe0;
  font-weight: bold;
  background: transparent;
  border-color: transparent;
  display: inline-block;
  width: 95%;
}

.flex-navi a:hover,
nav a:focus {
  background: transparent;
  border-color: transparent;
  color: #f3ebe0;
  text-shadow: 0 0 10px #fff, 0 0 20px #f3ebe0, 0 0 30px #f3ebe0, 0 0 40px #f3ebe0, 0 0 50px #f3ebe0, 0 0 60px #f3ebe0, 0 0 70px #f3ebe0;
}

/* aktuelle Seite wird farbig geändert */
.flex-navi a[aria-current="page"] {
  color: #333333;
  font-weight: bold;
  font-size: 1.2em;
}
/*
article img {
  max-width: 100%;
}

figure {
  display: flex;
  width: 99.5%;
  margin: 0.05em;
  padding: 0.05em;
}

figure img {
  width: 100%;
}

figure figcaption {
  bottom: auto;
}
*/
#logo {
  position: absolute;
  display: inline-block;
  text-shadow: none;
  color: transparent;
  background: transparent;
  flex: 1 100%;
}

#logo:before {
  content: "Bernhard Walz";
  text-shadow: none;
  color: #f3ebe0;
  font-size: 2rem;
  flex: 1 100%;
}

a {
  color: rgb(0, 0, 0);
}

main {
  display: block;
  min-height: 400px;
}

aside {
  background: #c4ced3;
  border-color: #8a9da8;
}

#hinweis {
  border-left: 5px solid #c32e04;
}

.hinweis {
  color: #c32e04;
  font-style: italic;
  border-bottom: 1px dotted;
  display: inline-block;
}


/* neue Lightbox*/

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  /*width: 90vw; height: 90vh;*/
  width: 100%; height: 100%;
  background-color: rgba(168, 168, 168, 0.8);
  z-index: 1000;
}

#lightbox-content {
  position: relative;
  width: 95vw;
  height: 95vh;
  margin: auto;
  background-color: #aaa;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* aus alter lightbos hinzugefügt */

#lightbox figure {
  /*position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);*/
  border: none; /*thin solid #aaa;*/ 
  margin: 0; box-sizing: border-box; width: 95%; height: 95%;
  /*background: #ccc;*/
  background: #a8a8a8 
}

/* aus alter lightbos hinzugefügt */

#lightbox img {
  /*max-width: 80%; max-height: 80%;*/
  display: block;
  margin: auto;
  width: 95%;
  height: 95%;
  object-fit: contain;
}

#lightbox figcaption {
  font-size: larger;
  font-style: italic;
  text-align: center;
  background-color: rgb(168, 168, 168);
  padding: 10px;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 35px;
  cursor: pointer;
  color: rgb(0, 0, 0);
  padding: 20px 10px;
}

.nav-buttons {
  position: absolute;
  bottom: 20px;
  width: 95%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
}

.nav-button {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 35px;
  background: rgba(0, 0, 0, 0.0);
  color: white;
  border: none;
  border-radius: 5px;
}


/* Ende Lightbox */

/*back button aus zeitvergleich*/ /* in padding und top an lbx-a angepasst */

      #backButton {
        position: fixed;
        top: 6.3em;/*185px;*/
        /*right: 20px; width: 40px; height: 40px;*/
        right: 1em;

        background: rgb(187, 187, 187, 0.8);

        border: none;
        border-radius: .2em;  /*aus lbx-a*/

        cursor: pointer;
        padding: .1em .4em .2em .4em; /*aus lbx-a, aber Werte auf &ntimes; angepasst*/
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        /*font-weight: bold;*/
        font-size: 30px; /* Größe des Kreuzes */
      }
      #backButton:hover {
        background-color:  rgba(168, 168, 168, 0.8);
        color: rgba(255, 255, 255);
      }

/* responsives Layout */
body {
  display: flex;
  flex-flow: row wrap;
}

header,
nav,
nav a,
article,
section,
aside,
footer {
  border-radius: 0.2em; /*wirkt sich auf das ganze Dokument aus*/
  margin: 0.5em;
  flex: 1 100%;
  padding: 1px;
}

header {
  display: flex;
  flex-flow: row wrap;
}

header * {
  flex: 1 1 100%;
}

header img {
  flex: 0 0 150px;
  margin-right: 20px;
}

header nav {
  flex: 1 1 100%;
}

nav ul,
nav li {
  margin: 0;
  padding: 0;
  border: none;
}

nav ul {
  display: flex;
  flex-direction: row;
}

nav li {
  list-style-type: none;
  margin: 0.2em;
  flex: 1 1 100%;
}

nav a {
  width: auto;
  margin: 0;
  text-decoration: none;
  text-align: center;
  color: #f3ebe0;
  font-weight: bold;
  font-size: 1.3em;
  background: transparent;
  border-color: transparent;
  display: inline-block;
  width: 95%;
}

nav a:hover,
nav a:focus {
  background: transparent;
  border-color: transparent;
  color: #f3ebe0;
  text-shadow: 0 0 10px #fff, 0 0 20px #f3ebe0, 0 0 30px #f3ebe0, 0 0 40px #f3ebe0, 0 0 50px #f3ebe0, 0 0 60px #f3ebe0, 0 0 70px #f3ebe0;
}

nav a[aria-current="page"] {
  color: #333333;
  font-weight: bold;
}

section {
  background: #f1f3f4;
  border-color: slateblue;
}

article {
  background: #a8a8a8;
  border-color: #df6c20;
}

aside {
  background: #ebf5d7;
  border-color: #8db243;
}

img {
  width: 100%;
  height: auto;
}

footer {
  background: rgb(187, 187, 187);
  border-color: #8a9da8;
  display: flex;
  flex-flow: row wrap;
}

footer * {
  flex: 1 1 0%;
  justify-content: space-between;
}

footer p:last-child {
  text-align: right;
  padding-right: 0.5em;
}


/* Smart Phones und Tablets mit mittlerer Auflösung */

@media all and (min-width: 35em) {
  header img {
    margin-right: 50px;
  }

  nav ul {
    flex-direction: row;
  }

  nav li {
    margin: 0 0px;
    flex: 1 1 0%;
  }

  article {
    order: 2;
  }

  img {
    width: 60%;
  }

  img.rechts {
    float: right;
    margin-left: 0.5em;
  }

  img.links {
    float: left;
    margin-right: 0.5em;
  }

  #news {
    flex: 1 auto;
    order: 3;
  }

  aside {
    flex: 1 auto;
    order: 4;
  }

  footer {
    order: 5;
  }
}


/* Large screens */

@media all and (min-width: 50em) {
  article {
    order: 3;
    flex: 3 1 0%;
  }

  aside {
    flex: 1 1 0%;
  }

  #news {
    flex: 1 1 0%;
    order: 2;
    align-self: center;
    height: 12em;
  }

  #logo:before {
    top: -1em;
    left: -5em;
  }

  #index nav li:nth-child(1) a {
    position: absolute;
    top: 2em;
    left: 3em;
  }

  #index nav li:nth-child(2) a {
    position: absolute;
    top: 0em;
    left: 13em;
  }

  #index nav li:nth-child(3) a {
    position: absolute;
    top: -2em;
    right: 11em;
  }

  #index nav li:nth-child(4) a {
    position: absolute;
    top: 2em;
    right: 1.5em;
  }

  img {
    width: 25%;
  }


}




/* SVG-Responsive */
svg a,
.info {
  opacity: 0;
}

svg a:hover ~ .info {
  opacity: 1;
  transition: all 0.5s linear;
}

.info > use {
  fill: #b5d9e3;
  stroke: #2a4b6f;
  stroke-width: 1;
}

text {
  text-anchor: middle;
  font-size: 2.5em;
  font-family: sans-serif;
}

tspan {
  font-size: 80%;
  font-style: italic;
}
